package com.chenliang.autetest.client;

import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerClient;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext;
import org.apache.jmeter.samplers.SampleResult;
import org.springframework.stereotype.Component;

/**
 * @program: auto_test
 * @description:
 * @author: chenLiang
 * @create: 2022-12-13 13:45
 */
@Component
public class JMeterClient implements JavaSamplerClient {


    /**
     * 启动时 处理
     *
     * @param context
     */
    @Override
    public void setupTest(JavaSamplerContext context) {

    }

    /**
     * 传参
     *
     * @param context
     * @return
     */
    @Override
    public SampleResult runTest(JavaSamplerContext context) {
        return null;
    }

    /**
     * 业务逻辑
     *
     * @param context
     */
    @Override
    public void teardownTest(JavaSamplerContext context) {

    }

    /**
     * 结束处理
     *
     * @return
     */
    @Override
    public Arguments getDefaultParameters() {
        return null;
    }
}
